package xuegao.study.mall.web.service;

import xuegao.study.mall.common.api.CommonResult;
import xuegao.study.mall.common.model.ums.UmsMember;

import javax.servlet.http.HttpServletRequest;

public interface UmsMemberService {

    /**
     * 生成验证码
     */
    CommonResult generateAuthCode(String telephone);

    /**
     * 验证码验证
     */
    CommonResult verifyAuthCode(String telephone, String authCode);

    void register(String username, String password, String telephone, String authCode);

    CommonResult login(String username, String password);

    UmsMember getCurrentMember();

    UmsMember getByUsername(String username);
//
//    UserDetails loadUserByUsername(String username);

    UmsMember getById(Long id);

    int updateIntegration(Long id, Integer integration);
}
